/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.mp.comment.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.mp.comment.dao.WeixinSubscribeMapper;
import com.yami.shop.mp.comment.model.WeixinSubscribe;
import com.yami.shop.mp.comment.service.WeixinSubscribeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @author lgh on 2019/01/16.
 */
@Service
public class WeixinSubscribeServiceImpl extends ServiceImpl<WeixinSubscribeMapper,WeixinSubscribe> implements WeixinSubscribeService {

    @Autowired
    private WeixinSubscribeMapper weixinSubscribeMapper;

    @Override
    @Cacheable(cacheNames="WeixinSubscribeList",key="1")
    public List<WeixinSubscribe> listWeixinSubscribeAndMaterial() {
        return weixinSubscribeMapper.listWeixinSubscribeAndMaterial();
    }

    @Override
    @CacheEvict(cacheNames="WeixinSubscribeList",key="1")
    public void removeWeixinSubscribeAndMaterial() {
    }
}
